Power Automate Expressions

A comprehensive reference for all Power Automate workflow expression functions.

String Functions

Function Task
chunkSplit a string or collection into chunks of equal length.
concatCombine two or more strings, and return the combined string.
endsWithCheck whether a string ends with the specified substring.
formatNumberReturn a number as a string based on the specified format
guidGenerate a globally unique identifier (GUID) as a string.
indexOfReturn the starting position for a substring.
isFloatReturn a boolean that indicates whether a string is a floating-point number.
isIntReturn a boolean that indicates whether a string is an integer.
lastIndexOfReturn the starting position for the last occurrence of a substring.
lengthReturn the number of items in a string or array.
nthIndexOfReturn the starting position or index value where the nth occurrence of a substring appears in a string.
replaceReplace a substring with the specified string, and return the updated string.
sliceReturn a substring by specifying the starting and ending position or value.
splitReturn an array that contains substrings, separated by commas, from a larger string based on a specified delimiter character in the original string.
startsWithCheck whether a string starts with a specific substring.
substringReturn characters from a string, starting from the specified position.
toLowerReturn a string in lowercase format.
toUpperReturn a string in uppercase format.
trimRemove leading and trailing whitespace from a string, and return the updated string.

Collection Functions

Function Task
chunkSplit a string or collection into chunks of equal length.
containsCheck whether a collection has a specific item.
emptyCheck whether a collection is empty.
firstReturn the first item from a collection.
intersectionReturn a collection that has only the common items across the specified collections.
itemReturn the current item in the array during the action's current iteration.
joinReturn a string that has all the items from an array, separated by the specified character.
lastReturn the last item from a collection.
lengthReturn the number of items in a string or array.
reverseReverse the order of items in an array.
skipRemove items from the front of a collection, and return all the other items.
sortSort items in a collection.
takeReturn items from the front of a collection.
unionReturn a collection that has all the items from the specified collections.

Logical Comparison Functions

Function Task
andCheck whether all expressions are true.
equalsCheck whether both values are equivalent.
greaterCheck whether the first value is greater than the second value.
greaterOrEqualsCheck whether the first value is greater than or equal to the second value.
ifCheck whether an expression is true or false. Based on the result, return a specified value.
isFloatReturn a boolean that indicates whether a string is a floating-point number.
isIntReturn a boolean that indicates whether a string is an integer.
lessCheck whether the first value is less than the second value.
lessOrEqualsCheck whether the first value is less than or equal to the second value.
notCheck whether an expression is false.
orCheck whether at least one expression is true.

Conversion Functions

Function Task
arrayReturn an array from a single specified input.
base64Return the base64-encoded version for a string.
base64ToBinaryReturn the binary version for a base64-encoded string.
base64ToStringReturn the string version for a base64-encoded string.
binaryReturn the binary version for an input value.
boolReturn the Boolean version for an input value.
createArrayReturn an array from multiple inputs.
dataUriReturn the data URI for an input value.
dataUriToBinaryReturn the binary version for a data URI.
dataUriToStringReturn the string version for a data URI.
decimalReturn the decimal number for a decimal string.
decodeBase64Return the string version for a base64-encoded string.
decodeDataUriReturn the binary version for a data URI.
decodeUriComponentReturn a string that replaces escape characters with decoded versions.
encodeUriComponentReturn a string that replaces URL-unsafe characters with escape characters.
floatReturn a floating point number for an input value.
intReturn the integer version for a string.
jsonReturn the JavaScript Object Notation (JSON) type value or object for a string or XML.
stringReturn the string version for an input value.
uriComponentReturn the URI-encoded version for an input value by replacing URL-unsafe characters with escape characters.
uriComponentToBinaryReturn the binary version for a URI-encoded string.
uriComponentToStringReturn the string version for a URI-encoded string.
xmlReturn the XML version for a string.

Math Functions

Function Task
addReturn the result from adding two numbers.
divReturn the result from dividing two numbers.
maxReturn the highest value from a set of numbers or an array.
minReturn the lowest value from a set of numbers or an array.
modReturn the remainder from dividing two numbers.
mulReturn the product from multiplying two numbers.
randReturn a random integer from a specified range.
rangeReturn an integer array that starts from a specified integer.
subReturn the result from subtracting the second number from the first number.

Date/Time Functions

Function Task
addDaysAdd days to a timestamp.
addHoursAdd hours to a timestamp.
addMinutesAdd minutes to a timestamp.
addSecondsAdd seconds to a timestamp.
addToTimeAdd specified time units to a timestamp.
convertFromUtcConvert a timestamp from Universal Time Coordinated (UTC) to the target time zone.
convertTimeZoneConvert a timestamp from the source time zone to the target time zone.
convertToUtcConvert a timestamp from the source time zone to Universal Time Coordinated (UTC).
dateDifferenceReturn the difference between two dates as a timespan.
dayOfMonthReturn the day of the month component from a timestamp.
dayOfWeekReturn the day of the week component from a timestamp.
dayOfYearReturn the day of the year component from a timestamp.
formatDateTimeReturn the date from a timestamp.
getFutureTimeReturn the current timestamp plus the specified time units.
getPastTimeReturn the current timestamp minus the specified time units.
parseDateTimeReturn the timestamp from a string that contains a timestamp.
startOfDayReturn the start of the day for a timestamp.
startOfHourReturn the start of the hour for a timestamp.
startOfMonthReturn the start of the month for a timestamp.
subtractFromTimeSubtract a number of time units from a timestamp.
ticksReturn the ticks property value for a specified timestamp.
utcNowReturn the current timestamp as a string.

Referencing Functions

Function Task
parametersReturn a parameter value that is in the definition.
resultReturn the results from the top-level actions in the specified scoped action.
actionsReturn a actions value from other JSON name and value pairs or the output of the runtime action.
outputsReturn a actions value from the JSON value (same as actions()?['outputs']).
bodyReturn a actions values body from the JSON value (same as actions()?['outputs']?['body']).
triggerReturn the trigger value from other JSON name and value pairs or the output of the runtime action.
triggerOutputsReturn the trigger value from the JSON value (same as trigger()?['outputs'])
triggerBodyReturn the trigger values body from the JSON value (same as trigger()?['outputs']?['body'])
itemReturn the key of a record when used in a repeating action (like create csv table).
itemsReturn the current record inside a loop (Like apply to each).
iterationIndexesReturn the current iteration inside a Do until loop (same as a counter).
variablesReturn a local variable.

Workflow Functions

Function Task
actionReturn the current action's output at runtime, or values from other JSON name-and-value pairs.
actionsReturn an action's output at runtime, or values from other JSON name-and-value pairs.
bodyReturn an action's body output at runtime.
formDataMultiValuesCreate an array with the values that match a key name in form-data or form-encoded action outputs.
formDataValueReturn a single value that matches a key name in an action's form-data or form-encoded output.
itemReturn the current item in the array during the action's current iteration.
itemsReturn the current item from the specified loop.
iterationIndexesReturn the index value for the current iteration inside an Until loop.
listCallbackUrlReturn the "callback URL" that calls a trigger or action.
multipartBodyReturn the body for a specific part in an action's output that has multiple parts.
outputsReturn an action's output at runtime.
parametersReturn the value for a parameter that is described in your workflow definition.
resultReturn the inputs and outputs from the top-level actions inside the specified scoped action.
triggerReturn a trigger's output at runtime, or from other JSON name-and-value pairs.
triggerBodyReturn a trigger's body output at runtime.
triggerFormDataValueReturn a single value matching a key name in form-data or form-encoded trigger outputs.
triggerMultipartBodyReturn the body for a specific part in a trigger's multipart output.
triggerFormDataMultiValuesCreate an array whose values match a key name in form-data or form-encoded trigger outputs.
triggerOutputsReturn a trigger's output at runtime, or values from other JSON name-and-value pairs.
variablesReturn the value for a specified variable.
workflowReturn all the details about the workflow itself during run time.

URI Parsing Functions

Function Task
uriHostReturn the host value for a uniform resource identifier (URI).
uriPathReturn the path value for a uniform resource identifier (URI).
uriPathAndQueryReturn the path and query values for a uniform resource identifier (URI).
uriPortReturn the port value for a uniform resource identifier (URI).
uriQueryReturn the query value for a uniform resource identifier (URI).
uriSchemeReturn the scheme value for a uniform resource identifier (URI).

Manipulation Functions

Function Task
addPropertyAdd a property and its value, or name-value pair, to a JSON object, and return the updated object.
coalesceReturn the first non-null value from one or more parameters.
removePropertyRemove a property from a JSON object and return the updated object.
setPropertySet the value for a JSON object's property and return the updated object.
xpathCheck XML for nodes or values that match an XPath (XML Path Language) expression, and return the matching nodes or values.